﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Liar's Dice" Height="452" Width="555" Icon="dice.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition ></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>

        <Menu Grid.Row="0">
            <MenuItem Header="New game" x:Name="menuNewGame" />
            <MenuItem Header="Add Player" x:Name="menuAddPlayer" />
            <MenuItem Header="Add AI" x:Name="menuAddAI" />
            <MenuItem Header="Start Game" x:Name="menuStartGame" />
            <MenuItem Header="Exit" x:Name="menuExit" />
        </Menu>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="150"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <GroupBox Header="Bid Options" Padding="0 0 0 0" Margin="5 5 5 5">
                <StackPanel Grid.Column="0" Orientation="Vertical">
                    <StackPanel Orientation="Horizontal">
                        <Label>Select bid type:</Label>
                        <RadioButton Margin="0 5 10 0" x:Name="bidTypeChallengeRB">Challenge</RadioButton>
                        <RadioButton Margin="0 5 0 0" x:Name="bidTypeRaiseRB" IsChecked="true">Raise</RadioButton>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <Label>Select a die value:</Label>
                        <ToggleButton Width="50" x:Name="dieValue2Button" Focusable="False">2</ToggleButton>
                        <ToggleButton Width="50" x:Name="dieValue3Button" Focusable="False">3</ToggleButton>
                        <ToggleButton Width="50" x:Name="dieValue4Button" Focusable="False">4</ToggleButton>
                        <ToggleButton Width="50" x:Name="dieValue5Button" Focusable="False">5</ToggleButton>
                        <ToggleButton Width="50" x:Name="dieValue6Button" Focusable="False">6</ToggleButton>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" x:Name="dieCountStackPanel">
                        <Label>Select die value count:</Label>
                        <DockPanel x:Name="dieCountButtonDockPanel">
                        </DockPanel>
                    </StackPanel>
                    <Button x:Name="makeBidButton">Post bid</Button>
                </StackPanel>
            </GroupBox>
            
            <StackPanel Grid.Column="1">
                <Label>Players:</Label>
            <ListBox Grid.Column="1" x:Name="playersListBox">
                
            </ListBox>
            </StackPanel>

        </Grid>
        
        <Grid Grid.Row="2">
            <DockPanel>
                <Label>Personal hidden dices: </Label>
                <Label x:Name="dicesLabel"></Label>
            </DockPanel>
            
        </Grid>
        
        <Grid Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <GroupBox Header="Bid Information">
                <StackPanel Orientation="Horizontal">
                    <Label>Last bid:</Label>
                <Label x:Name="currentBidLabel"> None</Label>
                </StackPanel>
            </GroupBox>
            <GroupBox Grid.Column="1" Header="Round History">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" x:Name="historyStackPanel">
                    <ListBox x:Name="roundBidHistoryListBox" HorizontalAlignment="Right" Width="{Binding ElementName=historyStackPanel,Path=ActualWidth}">
                    </ListBox>
                </StackPanel>
            </GroupBox>
        </Grid>

    </Grid>
</Window>
